<?php
/**
* FileName: mod_ezdonate.php
* Date: 05-10-2005
* License: GNU General Public License
* Script Version #: 1.0
* Author: K.J. Strickland - http://www.justjoomla.com
* Modified: Nikolai Plath (elkuku) - http://www.nik-it.de  - 11/2006
**/

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

global $database, $id;

$intro         = $params->get( 'intro' ) ;
$concl         = $params->get( 'concl' ) ;
$paypal_email  = $params->get( 'paypal_email' ) ;
$item_name     = $params->get( 'item_name' ) ;
$item_number   = $params->get( 'item_number' ) ;
$return        = $params->get( 'return' ) ;
$currency      = $params->get( 'currency' ) ;
$title         = $params->get( 'title' );//ADD - NiK

?>

<div align="center">
    <hr />

    <?php echo $intro; ?>

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
		 <input type="hidden" name="cmd" value="_xclick" />
		 <input type="hidden" name="business" value="<?php echo $paypal_email; ?>" />
		 <input type="hidden" name="item_name" value="<?php echo $item_name; ?>" />
		 <input type="hidden" name="item_number" value="<?php echo $item_number; ?>" />
		 <input type="hidden" name="no_shipping" value="1" />
		 <input type="hidden" name="return" value="<?php echo $return; ?>" />
		 <input type="hidden" name="no_note" value="1" />
		 <input type="hidden" name="currency_code" value="<?php echo $currency; ?>" />
		 <input type="hidden" name="tax" value="0" />
		 <input type="hidden" name="bn" value="EZ Donate" />
		 <input type="image" src="modules/mod_ezdonate/donate.gif" name="submit" alt="<?php echo $title; ?>" title="<?php echo $title; ?>" />
    </form>
    
<?php
if ($concl != '...') {
    echo $concl;
}
echo '</div>
<hr />';

?>
